
<h1>Address Listing</h1>
<%=flash[:notice]%>

<ol>
<%for address in @addresses %>
  <li>
    <%=address.name%>
    <%=address.address%>
    <%=address.email%>
    <%=address.phone%>
    <%=link_to ("Edit", :action=>"edit", :id=>address)%>
    <%=link_to ("Delete", {:action=>"delete", :id=>address}, :confirm=>"Are you sure?")%>
  </li>
<%end%>
</ol>
<%=link_to ("Add New", :action=>"new")%>
